package weixin.processer.message;

import java.util.ArrayList;

import weixin.WXMessage;
import weixin.WXMessage.Item;

/**
 * @author ultrafrog
 * @version 1.0, 2014-11-13
 * @since 1.0
 */
public class TestMessageProcesser extends WXMessageProcesser {

	/* (non-Javadoc)
	 * @see weixin.processer.message.WXMessageProcesser#process(weixin.WXMessage, weixin.WXMessage)
	 */
	@Override
	public Boolean process(WXMessage wxmsg, WXMessage bkmsg) {
		bkmsg.msgType = WXMessage.Type.NEWS;
		bkmsg.articleCount = 3;
		bkmsg.articles = new ArrayList<WXMessage.Item>(bkmsg.articleCount);
		
		bkmsg.articles.add(new Item("我是测试", "随便测一测", "http://h.hiphotos.baidu.com/image/pic/item/0dd7912397dda144223c8225b0b7d0a20cf48674.jpg", "http://eqianxing.com"));
		bkmsg.articles.add(new Item("再测试一下", "啦啦啦啦啦", "http://imgt6.bdstatic.com/it/u=2,824767416&fm=25&gp=0.jpg", "http://eqianxing.com"));
		bkmsg.articles.add(new Item("再测试", "测试测试测试测试测试测试", "http://h.hiphotos.baidu.com/image/w%3D230/sign=6d56c0416f224f4a5799741039f69044/11385343fbf2b2114cbe3329c88065380dd78ec1.jpg", "http://eqianxing.com"));
		
		return Boolean.TRUE;
	}
}
